package com.ahm.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author anhaimeng
 * @title: ServiceConsumerApplication
 * @projectName eurekademo002
 * @description: TODO
 * @date 2021/10/199:14
 */
/*功能描述
 * @author ahm
 */
@SpringBootApplication
public class ServiceConsumerApplication {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }


    public static void main(String[] args) {
        SpringApplication.run(ServiceConsumerApplication.class,args);
    }



}
